/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class BreastPump {
    static categoryCode = '010050049';

    static categoryName = '吸奶器';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return BreastPump.categoryCode;
    }

    get categoryName() {
        return BreastPump.categoryName;
    }

    getBreastSuckingLevel(params) {
        return command({
            method: 'getBreastSuckingLevel',
            methodId: 'pDrhgJq1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLactationLevel(params) {
        return command({
            method: 'getLactationLevel',
            methodId: 'pdN7VzDz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'pgh0uoSo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'phEqYRCR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkStatus(params) {
        return command({
            method: 'getWorkStatus',
            methodId: 'ptRSxWeW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBreastSuckingLevel(params) {
        return command({
            method: 'setBreastSuckingLevel',
            methodId: 'peH3by43',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLactationLevel(params) {
        return command({
            method: 'setLactationLevel',
            methodId: 'p1vZQTzk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'pUPQLHHx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'pZgRrvFb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStop(params) {
        return command({
            method: 'setStop',
            methodId: 'ppAX3i8G',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pGoxpNKq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default BreastPump;
